package com.yc.test.proxy;


/**
 * 代理模式之动态代理
 */
public class ProxyApplication {
    public static void main(String[] args) {
        ZooInvacationHandler handler = new ZooInvacationHandler();
        handler.setAnimal(new Dog());
        handler.cry();

        handler.setAnimal(new Cat());
        handler.cry();
    }
}
